#!/bin/bash
source /Users/frontrow/atvMod_com/scripts/common.vars

mkdir 

if [ -s $TMP_LOG ] ; then
  MSG="`cat $TMP_LOG`"
  case $# in
    1)
      echo "`date '+%B %d %H:%M:%S'` `hostname` [ $1 ]: $MSG" >> $LOG;
      ;;
    *)
      echo "`date '+%B %d %H:%M:%S'` `hostname` [ `whoami` ]: $MSG" >> $LOG;
      ;;
  esac
  rm $TMP_LOG
  unset MSG
fi
